3.2518 \(\int x^{-1+4 n} (a+b x^n) \, dx\)

Optimal. Leaf size=27 \[ \frac{a x^{4 n}}{4 n}+\frac{b x^{5 n}}{5 n} \]

[Out]

(a*x^(4*n))/(4*n) + (b*x^(5*n))/(5*n)

________________________________________________________________________________________

Rubi [A]  time = 0.0075547, antiderivative size = 27, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.067, Rules used = {14} \[ \frac{a x^{4 n}}{4 n}+\frac{b x^{5 n}}{5 n} \]

Antiderivative was successfully verified.

[In]

Int[x^(-1 + 4*n)*(a + b*x^n),x]

[Out]

(a*x^(4*n))/(4*n) + (b*x^(5*n))/(5*n)

Rule 14

Int[(u_)*((c_.)*(x_))^(m_.), x_Symbol] :> Int[ExpandIntegrand[(c*x)^m*u, x], x] /; FreeQ[{c, m}, x] && SumQ[u]
 &&  !LinearQ[u, x] &&  !MatchQ[u, (a_) + (b_.)*(v_) /; FreeQ[{a, b}, x] && InverseFunctionQ[v]]

Rubi steps

\begin{align*} \int x^{-1+4 n} \left (a+b x^n\right ) \, dx &=\int \left (a x^{-1+4 n}+b x^{-1+5 n}\right ) \, dx\\ &=\frac{a x^{4 n}}{4 n}+\frac{b x^{5 n}}{5 n}\\ \end{align*}

Mathematica [A]  time = 0.0102318, size = 22, normalized size = 0.81 \[ \frac{x^{4 n} \left (5 a+4 b x^n\right )}{20 n} \]

Antiderivative was successfully verified.

[In]

Integrate[x^(-1 + 4*n)*(a + b*x^n),x]

[Out]

(x^(4*n)*(5*a + 4*b*x^n))/(20*n)

________________________________________________________________________________________

Maple [A]  time = 0.015, size = 28, normalized size = 1. \begin{align*}{\frac{a \left ({{\rm e}^{n\ln \left ( x \right ) }} \right ) ^{4}}{4\,n}}+{\frac{b \left ({{\rm e}^{n\ln \left ( x \right ) }} \right ) ^{5}}{5\,n}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^(-1+4*n)*(a+b*x^n),x)

[Out]

1/4*a/n*exp(n*ln(x))^4+1/5*b/n*exp(n*ln(x))^5

________________________________________________________________________________________

Maxima [F(-2)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(-1+4*n)*(a+b*x^n),x, algorithm="maxima")

[Out]

Exception raised: ValueError

________________________________________________________________________________________

Fricas [A]  time = 1.02032, size = 49, normalized size = 1.81 \begin{align*} \frac{4 \, b x^{5 \, n} + 5 \, a x^{4 \, n}}{20 \, n} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(-1+4*n)*(a+b*x^n),x, algorithm="fricas")

[Out]

1/20*(4*b*x^(5*n) + 5*a*x^(4*n))/n

________________________________________________________________________________________

Sympy [A]  time = 6.21313, size = 26, normalized size = 0.96 \begin{align*} \begin{cases} \frac{a x^{4 n}}{4 n} + \frac{b x^{5 n}}{5 n} & \text{for}\: n \neq 0 \\\left (a + b\right ) \log{\left (x \right )} & \text{otherwise} \end{cases} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**(-1+4*n)*(a+b*x**n),x)

[Out]

Piecewise((a*x**(4*n)/(4*n) + b*x**(5*n)/(5*n), Ne(n, 0)), ((a + b)*log(x), True))

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (b x^{n} + a\right )} x^{4 \, n - 1}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(-1+4*n)*(a+b*x^n),x, algorithm="giac")

[Out]

integrate((b*x^n + a)*x^(4*n - 1), x)